require("helper"); //注册handlebars辅助函数
require("templates"); //注册hanlebars模板
require("app"); //应用全局js

//启动页面对应的模块
var url = window.location.pathname;
if (url.indexOf("?") > -1) {
  url = url.split("?")[0];
}
var moduleId = "" + url.slice(1) + "/view";
try {
  moduleId = document.getElementById("cmd-require").value;
} catch (_error) {
}
console.log("调用模块：" + moduleId);
var module = eval("require('" + moduleId + "')");
